package com.letfox.ad.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.letfox.ad.model.ADServingMaterial;

@Repository
public interface ADServingMaterialDao {

    int deleteByPrimaryKey(String adMaterialId);

    int insert(ADServingMaterial record);

    ADServingMaterial selectByPrimaryKey(String adMaterialId);
    
    int updateByPrimaryKeySelective(ADServingMaterial record);
    
    List<ADServingMaterial> selectAll();
    
    List<ADServingMaterial> queryMaterial(int value);
    /**
     * 查询内播广告
     * @param map
     * @return
     */
    List<Map<String, String>> queryWithinMaterial(Map<String, Object> map);
    /**
     * 查询外播广告
     * @param map
     * @return
     */
    List<Map<String, String>> queryOutsideMaterial(Map<String, Object> map);
}